package com.zhou.framework.filter;

import com.alibaba.fastjson.serializer.SimplePropertyPreFilter;

/**
 * 排除JSON敏感属性
 * @author lang.zhou
 * @since 2023/2/18
 */
public class PropertyExcludeFilter extends SimplePropertyPreFilter {

    public PropertyExcludeFilter() {
    }

    public PropertyExcludeFilter addExcludes(String... filters) {
        for (String filter : filters) {
            this.getExcludes().add(filter);
        }
        return this;
    }
}
